var webpack = require('webpack');
var path = require("path");
module.exports = {
  entry: {
    app: "./App/app.js",
    index: "./App/index.js"
  },
  output: {
    path: path.resolve(__dirname, "dist"),
    filename: "[name].js"
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: "babel-loader"
      }
    ]
  },
  node:{
    fs:"empty",
    tls:"empty",
    net:"empty",
    child_process:"empty",
    cluster:"empty"
  },//打包node项目时 默认不处理node相关模块
};
